home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso
/
0105
/
vb.zip
/
LGBANDS.FRM
< prev
next >
Wrap
Text File
|
1996-01-10
|
18KB
|
588 lines
VERSION 2.00
Begin Form BandDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Operating Bands"
ClientHeight = 5925
ClientLeft = 3135
ClientTop = 2580
ClientWidth = 7575
Height = 6285
Left = 3075
LinkTopic = "Form2"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 395
ScaleMode = 3 'Pixel
ScaleWidth = 505
Top = 2280
Width = 7695
Begin TextBox Text1
Height = 825
Left = 3300
MultiLine = -1 'True
TabIndex = 39
Top = 4920
Width = 4035
End
Begin Frame Frame6
BackColor = &H00C0C0C0&
Caption = "Band Style"
Height = 1605
Left = 3330
TabIndex = 33
Top = 1020
Width = 2070
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "User Defined"
Height = 225
Index = 4
Left = 240
TabIndex = 38
Top = 1260
Width = 1600
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Tank"
Height = 225
Index = 3
Left = 240
TabIndex = 37
Top = 1020
Width = 1600
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Thermometer"
Height = 225
Index = 2
Left = 240
TabIndex = 36
Top = 780
Width = 1600
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Ellipse"
Height = 225
Index = 1
Left = 240
TabIndex = 35
Top = 540
Width = 1600
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Rectangle"
Height = 225
Index = 0
Left = 240
TabIndex = 34
Top = 300
Value = -1 'True
Width = 1600
End
End
Begin Frame Frame5
BackColor = &H00C0C0C0&
Caption = "Band Picture"
Height = 855
Left = 5430
TabIndex = 30
Top = 120
Width = 1935
Begin PictureBox Image1
Height = 500
Index = 0
Left = 1080
Picture = LGBANDS.FRX:0000
ScaleHeight = 31
ScaleMode = 3 'Pixel
ScaleWidth = 31
TabIndex = 31
Top = 240
Width = 500
End
Begin PictureBox Image1
Height = 500
Index = 1
Left = 390
Picture = LGBANDS.FRX:127A
ScaleHeight = 465
ScaleWidth = 465
TabIndex = 32
Top = 240
Width = 500
End
End
Begin LGAUGE LGauge1
AutoRedraw = -1 'True
AVersion = 2.501
BackColor = &H00E0E0E0&
BandID = 1
Bands = 3
BevelInner = 0 ' 0 - None
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderWidth = 0
CaptionID = 0
Captions = 0
FontID = 0
Height = 5565
Left = 90
Orientation = 1 ' 1 - Vertical
PointerID = 2
Pointers = 3
ScaleID = 0
Scales = 1
TabIndex = 29
TicID = 0
Tics = 2
Top = 180
Width = 3015
ZLoad = LGBANDS.FRX:31E4
End
Begin Frame Frame4
BackColor = &H00C0C0C0&
Caption = "Band Size Properties"
Height = 975
Left = 3330
TabIndex = 5
Top = 3630
Width = 4035
Begin HScrollBar HScroll1
Height = 240
Index = 2
Left = 1185
Max = 100
TabIndex = 8
Top = 315
Width = 2400
End
Begin HScrollBar HScroll1
Height = 240
Index = 3
Left = 1185
Max = 100
TabIndex = 9
Top = 540
Width = 2400
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Band Inner:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 2
Left = 330
TabIndex = 10
Top = 330
Width = 825
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0"
Height = 195
Index = 2
Left = 3690
TabIndex = 11
Top = 330
Width = 120
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Band Outer:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 3
Left = 285
TabIndex = 12
Top = 540
Width = 870
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "0"
Height = 195
Index = 3
Left = 3690
TabIndex = 13
Top = 555
Width = 120
End
End
Begin Frame Frame3
BackColor = &H00C0C0C0&
Caption = "Band Range Properties"
Height = 960
Left = 3330
TabIndex = 23
Top = 2670
Width = 4035
Begin HScrollBar HScroll1
Height = 240
Index = 0
Left = 1170
Max = 100
TabIndex = 25
Top = 330
Width = 2400
End
Begin HScrollBar HScroll1
Height = 240
Index = 1
Left = 1170
Max = 100
TabIndex = 24
Top = 555
Width = 2400
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 0"
Height = 195
Index = 0
Left = 3645
TabIndex = 15
Top = 375
Width = 180
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Band Start:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 0
Left = 300
TabIndex = 28
Top = 330
Width = 810
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Band Stop:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Arial"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 210
Index = 1
Left = 300
TabIndex = 27
Top = 585
Width = 795
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " 0"
Height = 195
Index = 1
Left = 3645
TabIndex = 26
Top = 615
Width = 180
End
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "Band Color"
Height = 1605
Left = 5430
TabIndex = 6
Top = 1020
Width = 1935
Begin Label Colors
BackColor = &H00000000&
Height = 405
Index = 0
Left = 360
TabIndex = 7
Top = 270
Width = 405
End
Begin Label Colors
BackColor = &H00808080&
Height = 405
Index = 1
Left = 1200
TabIndex = 14
Top = 690
Width = 405
End
Begin Label Colors
BackColor = &H00FFFFFF&
Height = 405
Index = 2
Left = 780
TabIndex = 16
Top = 270
Width = 405
End
Begin Label Colors
BackColor = &H000000FF&
Height = 405
Index = 3
Left = 360
TabIndex = 17
Top = 1110
Width = 405
End
Begin Label Colors
BackColor = &H0000FF00&
Height = 405
Index = 4
Left = 1200
TabIndex = 18
Top = 270
Width = 405
End
Begin Label Colors
BackColor = &H0000FFFF&
Height = 405
Index = 5
Left = 780
TabIndex = 19
Top = 1110
Width = 405
End
Begin Label Colors
BackColor = &H00FF0000&
Height = 405
Index = 6
Left = 360
TabIndex = 20
Top = 690
Width = 405
End
Begin Label Colors
BackColor = &H00FF00FF&
Height = 405
Index = 7
Left = 1200
TabIndex = 21
Top = 1110
Width = 405
End
Begin Label Colors
BackColor = &H000080FF&
Height = 405
Index = 8
Left = 780
TabIndex = 22
Top = 690
Width = 405
End
End
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "Band ID"
Height = 855
Left = 3330
TabIndex = 0
Top = 120
Width = 2070
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "2"
Height = 255
Index = 2
Left = 1320
TabIndex = 3
Top = 390
Width = 500
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "1"
Height = 255
Index = 1
Left = 780
TabIndex = 2
Top = 390
Value = -1 'True
Width = 500
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "0"
Height = 255
Index = 0
Left = 300
TabIndex = 1
Top = 390
Width = 500
End
End
Begin Label Label3
BackColor = &H00C0C0C0&
Caption = "Band Shape (x,y pairs)"
Height = 225
Left = 3330
TabIndex = 4
Top = 4680
Width = 3915
End
End
Sub Colors_Click (index As Integer)
lgauge1.BandColor = colors(index).BackColor
lgauge1.BandPicture = LoadPicture("")
End Sub
Sub Form_Load ()
hscroll1(0) = lgauge1.BandStart
hscroll1(1) = lgauge1.BandStop
hscroll1(2) = lgauge1.BandInner * 100
hscroll1(3) = lgauge1.BandOuter * 100
text1 = lgauge1.BandShape
End Sub
Sub HScroll1_Change (index As Integer)
Select Case index
Case 0
lgauge1.BandStart = hscroll1(0)
label2(0) = hscroll1(0)
Case 1
lgauge1.BandStop = hscroll1(1)
label2(1) = hscroll1(1)
Case 2
lgauge1.BandInner = hscroll1(2) / 100
label2(2) = hscroll1(2) / 100
Case 3
lgauge1.BandOuter = hscroll1(3) / 100
label2(3) = hscroll1(3) / 100
End Select
End Sub
Sub HScroll1_Scroll (index As Integer)
Select Case index
Case 0
lgauge1.BandStart = hscroll1(0)
label2(0) = hscroll1(0)
Case 1
lgauge1.BandStop = hscroll1(1)
label2(1) = hscroll1(1)
Case 2
lgauge1.BandInner = hscroll1(2) / 100
label2(2) = hscroll1(2) / 100
Case 3
lgauge1.BandOuter = hscroll1(3) / 100
label2(3) = hscroll1(3) / 100
End Select
End Sub
Sub Image1_Click (index As Integer)
lgauge1.BandPicture = Image1(index).Picture
End Sub
Sub lgauge1_Change ()
'get value of pointer(2)
lgauge1.PointerID = 2
value = lgauge1.PointerValue
'check value of pointer(0)
lgauge1.PointerID = 0
If lgauge1.PointerValue > value Then
lgauge1.PointerValue = value
End If
'check value of pointer(1)
lgauge1.PointerID = 1
If lgauge1.PointerValue < value Then
lgauge1.PointerValue = value
End If
End Sub
Sub LGauge1_Slide ()
'get value of pointer(2)
lgauge1.PointerID = 2
value = lgauge1.PointerValue
'check value of pointer(0)
lgauge1.PointerID = 0
If lgauge1.PointerValue > value Then
lgauge1.PointerValue = value
End If
'check value of pointer(1)
lgauge1.PointerID = 1
If lgauge1.PointerValue < value Then
lgauge1.PointerValue = value
End If
End Sub
Sub Option1_Click (index As Integer)
lgauge1.BandID = index
hscroll1(0) = lgauge1.BandStart
hscroll1(1) = lgauge1.BandStop
hscroll1(2) = lgauge1.BandInner * 100
hscroll1(3) = lgauge1.BandOuter * 100
option2(lgauge1.BandStyle) = True
text1 = lgauge1.BandShape
End Sub
Sub Option2_Click (index As Integer)
lgauge1.BandStyle = index
End Sub
Sub Text1_Change ()
lgauge1.BandShape = text1
End Sub